package com.liushuang.controller;

import com.liushuang.common.utils.E3Result;
import com.liushuang.content.service.ContentService;
import com.liushuang.pojo.TbContent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author liushuang
 * @create 2020-07-06 22:12
 */
@Controller
public class ContentController {

    @Autowired
    private ContentService contentService;

    @RequestMapping(value = "/content/save", method = RequestMethod.POST)
    @ResponseBody
    public E3Result addContent(TbContent tbContent){
        E3Result result = contentService.addContent(tbContent);
        return result;
    }
}
